﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DiscreteMath.Tests
{
    public class TestableContextFreeGrammar : TestableDevice<ContextFreeGrammar>
    {
        public TestableContextFreeGrammar(
            ContextFreeGrammar grammar,
            string name,
            Func<string, bool> recognitionTest):
            base(grammar, name)
        {
            this.RecognitionTest = recognitionTest;
        }

        public Func<string, bool> RecognitionTest { get; set; }
    }
}
